<?

/*
 * KinID.php
 * Retral/CSCD494 Winter 2009
 * Eastern Washington University
 *
 * File Description:
 
 * The Kin ID is a value that discribes the type of file uploaded or recieved
 * from the database. This file provides the proper value for a specific file
 * type. It's brother, tomcat/KinID.java is the oppisite and states if a Kin ID
 * identifies a specific type of file. The sister, filldb/KinID.java is similar
 * in purpose as this file, but only needed for filling the db of test data.
 * The Kin of a file uses bit-masking.
 * 
 * Other:
 *
 * PROVIDED_TO_STUDENT: These files are provided in some manner to the student.
 * SOURCE_FILE: When given to the student, this file will be in source form.
 * CLASS_FILE: When given to the student, this file will be compiled to a
 * class.
 * INSTRUCTION: This file contains instructions for the question.
 * SCORE_CRITERIA: This file tells the instructer how to deduct points of a
 * question.
 * IO: This file is used for either input or output.
 * 
 */


    define("PROVIDED_TO_STUDENT", 1);
    define("SOURCE_FILE", 2);
    define("CLASS_FILE", 4);
    define("INSTRUCTION", 8);
    define("SCORE_CRITERIA", 16);
    define("IO", 32);

    function instr() 
    {
        return PROVIDED_TO_STUDENT | INSTRUCTION;
    }

    function provided_io() 
    {
        return PROVIDED_TO_STUDENT | IO;
    }

    function test_io() 
    {
        return IO;
    }

    function scoring() 
    {
        return SCORE_CRITERIA;
    }

    function source_file() 
    {
        return PROVIDED_TO_STUDENT | SOURCE_FILE;
    }

    function class_file() 
    {
        return PROVIDED_TO_STUDENT | CLASS_FILE;
    }

?>
